<%= render 'menu/caidauadmin'%>
<h1>Edit Book Detail</h1>
<%= form_tag :action => 'updatebook', :id => @book %>
<fieldset align="left">
			<legend><h2>Edit Book</h2></legend>
<table>
	<tr>
		<td>Name:</td>
		<td><%= text_field 'book', 'Name'%></td>
	</tr>
	<tr>
		<td>Author:</td>
		<td><%= text_field'book', 'Author'%></td>
	</tr>
	<tr>
		<td>Genre:</td>
		<td><%= text_field 'book', 'Genre'%></td>
	</tr>
	<tr>
		<td>Publish Year:</td>
		<td><%= text_field 'book','Publish_year'%></td>
	</tr>
	<tr>
		<td>Quantity:</td>
		<td><%= text_field 'book','Quantity'%></td>
	</tr>
	<tr>
		<td>Description:</td>
		<td> <%= text_area 'book','Description' %></td>
	</tr>
	
</table>


<%= submit_tag "Save changes" %>
<%= $end_form_tag %>
<br/>
<%= link_to 'Back', {:action => 'book_manager' } %>
</fieldset>
